package com.flong.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 
 * @Description	ThriftServerConfig配置,@Configuration会自动寻找application.yml或application.properties的参数
 * @ClassName	ThriftServerConfig
 * @Date		2018年1月18日 上午10:09:24
 * @Author		liangjl
 * @Copyright (c) All Rights Reserved, 2018.
 */
//@Configuration
@Component
@ConfigurationProperties(prefix ="thrift")//以thrift.为前缀进行.
public class ThriftServerConfig  {
	
	private String serverIp;
	private int serverPort;
	private int serverTimeout;
	
	public int getServerPort() {
		return serverPort;
	}
	public void setServerPort(int serverPort) {
		this.serverPort = serverPort;
	}
	public int getServerTimeout() {
		return serverTimeout;
	}
	public void setServerTimeout(int serverTimeout) {
		this.serverTimeout = serverTimeout;
	}
	public String getServerIp() {
		return serverIp;
	}
	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}
	
	 
}
